
package it.lucci.ricochet.gui;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import javax.swing.JPanel;

/**
 * Gestore di input da tastiera e mouse. Da implementare.
 * @author gablu
 */
public class InputManager implements  KeyListener, MouseListener, MouseMotionListener {

    public InputManager(JPanel p) {
        addListenersTo(p);
    }
    
    private void addListenersTo(JPanel p) {
        p.addKeyListener(this);
        p.addMouseListener(this);
        p.addMouseMotionListener(this);
    }
    
    @Override
    public void keyPressed(KeyEvent ke) {
        //TODO
    }

    @Override
    public void keyReleased(KeyEvent ke) {
        //TODO
    }
    
    @Override
    public void mouseMoved(MouseEvent me) {
        //TODO
    } 
    
    @Override
    public void mouseClicked(MouseEvent me) {
        //TODO
    }

    @Override
    public void mousePressed(MouseEvent me) {
        //TODO
    }
    
    @Override
    public void mouseDragged(MouseEvent me) {
        mouseMoved(me);
    }

    @Override
    public void mouseReleased(MouseEvent me) {}

    @Override
    public void mouseEntered(MouseEvent me) {}

    @Override
    public void mouseExited(MouseEvent me) {}

    @Override
    public void keyTyped(KeyEvent ke) {}



    
    
}
